package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.linlinjava.litemall.db.models.NoticeAdmin;

import java.util.List;

public interface NoticeAdminService extends IService<NoticeAdmin> {

    public IPage<NoticeAdmin> querySelective(String title, String type, Integer adminId, Integer pageNo, Integer pageSize) ;

    public NoticeAdmin find(Integer noticeId, Integer adminId) ;

    public void markReadByIds(List<Integer> ids, Integer adminId) ;

    public void deleteById(Integer id, Integer adminId) ;

    public void deleteByIds(List<Integer> ids, Integer adminId) ;

    public int countUnread(Integer adminId) ;

    public List<NoticeAdmin> queryByNoticeId(Integer noticeId) ;

    public void deleteByNoticeId(Integer id) ;

    public void deleteByNoticeIds(List<Integer> ids) ;

    public int countReadByNoticeId(Integer noticeId) ;

    public void updateByNoticeId(NoticeAdmin noticeAdmin, Integer noticeId) ;
}
